package com.honeyms.project.blog.blogcomment.domain;

import java.util.Date;
import com.honeyms.framework.aspectj.lang.annotation.Excel;
import com.honeyms.framework.web.domain.BaseEntity;

/**
 * 评论详情对象 blog_comment
 * 
 * @author honeyms
 * @date 2020-11-04
 */
public class BlogCommentOpen extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long commentId;

    /** 评论者id */
    @Excel(name = "评论者id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论时间 */
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 被回复评论人id */
    @Excel(name = "被回复评论人id")
    private Long pid;

    /** 评论的帖子id */
    @Excel(name = "评论的帖子id")
    private Long contentId;

    /** 类型:1评论,2回复 */
    @Excel(name = "类型:1评论,2回复")
    private Integer type;

    /** 被回复评论内容id */
    @Excel(name = "被回复评论内容id")
    private Long plnrid;
    
    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;
    
    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatar;
    
    /** 被评论用户名 */
    @Excel(name = "被评论用户名")
    private String puserName;
    
    /** 被评论用户名头像 */
    @Excel(name = "被评论用户头像")
    private String pavatar;
    
    /** 回复评论 */
    @Excel(name = "回复评论")
    private String hfpl;

    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId()
    {
        return commentId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setContentId(Long contentId)
    {
        this.contentId = contentId;
    }

    public Long getContentId()
    {
        return contentId;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setPlnrid(Long plnrid)
    {
        this.plnrid = plnrid;
    }

    public Long getPlnrid()
    {
        return plnrid;
    }
    
    public String getUserName() {
		return userName;
	}

	public String getAvatar() {
		return avatar;
	}

	public String getPuserName() {
		return puserName;
	}

	public String getPavatar() {
		return pavatar;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public void setPuserName(String puserName) {
		this.puserName = puserName;
	}

	public void setPavatar(String pavatar) {
		this.pavatar = pavatar;
	}

	public String getHfpl() {
		return hfpl;
	}

	public void setHfpl(String hfpl) {
		this.hfpl = hfpl;
	}

	@Override
	public String toString() {
		return "{\"commentId\":\"" + commentId + "\", \"userId\":\"" + userId + "\", \"content\":\"" + content
				+ "\", \"createDate\":\"" + createDate + "\", \"pid\":\"" + pid + "\", \"contentId\":\"" + contentId
				+ "\", \"type\":\"" + type + "\", \"plnrid\":\"" + plnrid + "\", \"userName\":\"" + userName
				+ "\", \"avatar\":\"" + avatar + "\", \"puserName\":\"" + puserName + "\", \"pavatar\":\"" + pavatar
				+ "\", \"hfpl\":\"" + hfpl + "\"}";
	}

}
